package com.example.onlinereadingsystem.demos.web.dto.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * @TableName comment
 */
@TableName(value = "comment")
@Data
public class Comment implements Serializable {
    /**
     * id
     */
    @TableId(value = "id")
    private String id;

    /**
     * 来源用户id
     */
    @TableField(value = "from_user_id")
    private String fromUserId;

    /**
     * 发送给用户id(允许为空)
     */
    @TableField(value = "to_user_id")
    private String toUserId;

    /**
     * 评论id(允许为空，不为空时，则为回复)
     */
    @TableField(value = "comment_id")
    private String commentId;

    /**
     * 小说id
     */
    @TableField(value = "novel_id")
    private String novelId;

    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 创建者
     */
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private String createBy;

    /**
     * 更新者
     */
    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 是否删除 0=未删除 1=已删除
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}